ADC Control and Status
EN | Power on ADC and enable its clock. 1 - enabled. 0 - disabled. |
TS_EN | Power on temperature sensor. 1 - enabled. 0 - disabled. |
START_ONCE | Start a single conversion. Self-clearing. Ignored if start_many is asserted. |
START_MANY | Continuously perform conversions whilst this bit is 1. A new conversion will start immediately after the previous finishes. |
READY | 1 if the ADC is ready to start a new conversion. Implies any previous conversion has completed. 0 whilst conversion in progress. |
ERR | The most recent ADC conversion encountered an error; result is undefined or noisy. |
ERR_STICKY | Some past ADC conversion encountered an error. Write 1 to clear. |
AINSEL | Select analog mux input. Updated automatically in round-robin mode. This is corrected for the package option so only ADC channels which are bonded are available, and in the correct order |
RROBIN | Round-robin sampling. 1 bit per channel. Set all bits to 0 to disable. Otherwise, the ADC will cycle through each enabled channel in a round-robin fashion. The first channel to be sampled will be the one currently indicated by AINSEL. AINSEL will be updated after each conversion with the newly-selected channel. |